package com.ssm.service.serviceImpl;

import com.am.base.ServiceImplBase;
import com.ssm.bean.PoDa;
import com.ssm.dao.PoDaMapper;
import com.ssm.service.PoDaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class PoDaServiceImpl extends ServiceImplBase<PoDa, PoDaMapper> implements PoDaService {
    @Autowired
    private PoDaMapper poDaMapper;

    @Override
    public PoDa getDaByPoPk(Integer poPk){
        return poDaMapper.selectByAndPool(poPk);
    }

    @Override
    public List<PoDa> getListByTimeAndPoPk(Integer poPk,Date startTime,Date endTime){
        return poDaMapper.selectListByTimeAndPool(poPk,startTime,endTime);
    }
    @Override
    public PoDa getPoDaByPk(Integer poDaPk) {
        return poDaMapper.selectByPrimaryKey(poDaPk);
    }
}
